home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / OS / FWGraphx / FWFctInf.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  2.0 KB  |  54 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWFctInf.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWFCTINF_H
  11. #define FWFCTINF_H
  12.  
  13. #ifndef SLGDEV_H
  14. #include "SLGDev.h"
  15. #endif
  16.  
  17. //========================================================================================
  18. //    Forward class declaration
  19. //========================================================================================
  20.  
  21. class ODFacet;
  22.  
  23. //========================================================================================
  24. //    class FW_SPrivFacetPartInfo
  25. //========================================================================================
  26. //    FW_SPrivFacetPartInfo is set in each one of our facet part info 
  27.  
  28. struct FW_SPrivFacetPartInfo
  29. {
  30.     unsigned long                fMagicNumber1;            // I just want to be sure that it is one of my facet
  31.     unsigned long                fMagicNumber2;
  32.     FW_HGDevice                    fDevice;
  33.     ODHighlight                    fHighlight;
  34.     unsigned long                fRefCon;                // for users
  35. };
  36.  
  37. //========================================================================================
  38. //    Global Functions
  39. //========================================================================================
  40.  
  41. // ----- Public API
  42. FW_HGDevice             FW_GetFacetGraphicDevice(Environment* ev, ODFacet* facet);
  43. unsigned long             FW_GetFacetRefCon(Environment* ev, ODFacet* facet);
  44. void                     FW_SetFacetRefCon(Environment* ev, ODFacet* facet, unsigned long refCon);
  45.  
  46. // ----- Implementation only
  47. FW_SPrivFacetPartInfo*     FW_PrivCreateFacetPartInfo(Environment* ev, ODFacet* facet);
  48. void                     FW_PrivDeleteFacetPartInfo(Environment* ev, ODFacet* facet);
  49. FW_SPrivFacetPartInfo*     FW_PrivGetFacetPartInfo(Environment* ev, ODFacet* facet);
  50.  
  51. ODHighlight             FW_PrivGetFacetHighlight(Environment* ev, ODFacet* facet);
  52. void                     FW_PrivSetFacetHighlight(Environment* ev, ODFacet* facet, ODHighlight highlight);
  53. #endif
  54.